package com.example.test0518.serviceImpl;

import com.example.test0518.bean.UserBean;
import com.example.test0518.mapper.UserMapper;
import com.example.test0518.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public UserBean loginIn(String name, String password) {
        return userMapper.getInfo(name,password);
    }
}
